import request from '@/utils/request'

export const getEmployeesSimple = () => request.get('/sys/user/simple')

export const getEmployees = params => request.get('/sys/user', { params })

export const addEmployees = data => request.post('/sys/user', data)

export const delEmployees = id => request.delete(`/sys/user/${id}`)

export const importEmployees = data => request.post(`/sys/user/batch`, data)

export const saveUserDetailById = data => request.put(`/sys/user/${data.id}`, data)

export const getJobDetail = id => request.get(`/employees/${id}/jobs`)

export const assignRoles = data => request.put(`/sys/user/assignRoles`, data)
